#!/usr/bin/env node

import http from 'http';
import chalk from 'chalk';
http.createServer((req,res) => {
    const str = `HTTp请求起始行:请求方法为${req.method},请求路径为${req.url},HTTP版本为${req.httpVersion})`;
    console.log(chalk.greenBright(str));
    res.end('have a good night');
}).listen(8080);
